<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="path" value="${pageContext.request.contextPath}"></c:set>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户登录</title>
    <script src="${path}/user/test02/jquery-3.6.0.js"></script>
    <link rel="stylesheet" href="${path}/user/test02/css/login.css">

</head>
<body>
<jsp:include page="${path}/user/test03/normal/head.jsp"></jsp:include>


    <table width="950" align="center" border="0" cellspacing="0" cellpadding="0" class="tabbj">
        <tbody><tr>
          <td width="658" align="center" style="padding:5px 0;"><table width="98%" align="center" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #BBCADE; background-color:#FFFFFF">
            <tbody><tr>
              <td height="30" align="left" style="padding-left:10px; font-size:14px; color:Black;"><strong>会员 / 公司客户登录</strong></td>
              </tr>
            <tr>
              <td height="180" align="center">
                <form method="post" name="frm" action="${path}/UserServlet?mark=userLogin" id="login_form">
                  <table width="80%" border="0" cellspacing="0" cellpadding="0" align="center">

                    <tbody>
                    <tr><td colspan="2"><span style="color: red">${loginMsg}</span></td></tr>
                    <tr>
                      <td width="30%" height="50" align="right" style="font-size:14px;">用户名&nbsp;&nbsp;</td>
                      <td width="70%" align="left">
                        <input type="text" name="userId" id="login_user" class="login_inputxt" maxlength="50" value="">&nbsp;&nbsp;<span class="style_Grey12px"></span></td>
                    </tr>
                    <tr>
                      <td height="50" align="right" style="font-size:14px;">密&nbsp;&nbsp;&nbsp;码&nbsp;&nbsp;</td>
                      <td align="left"><input type="password" name="pwd" id="login_pwd" class="login_inputxt" maxlength="50" value="">&nbsp;&nbsp;<span class="style_Grey12px"></span></td>
                    </tr>
                    <tr>
                      <td></td>
                      <td height="50" align="left"><input id="loginBtn" type="submit" class="base_btns2" value="登录" onclick="return checklogin2();">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/member/RemindPwd.aspx" target="_blank">忘记密码？</a></td>
                    </tr>
                    <tr>
                      <td></td>
                      <td id="ctl00_ContentPlaceHolder1_errmsg" height="30" align="left" class="red">
                      </td>

                    </tr>

                    </tbody></table>
                </form>
                </td>
              </tr>
          </tbody>
          </table
          ></td>
          <td width="292" align="left" valign="top" style="padding:5px 0;"><table width="98%" height="85" border="0" cellpadding="0" cellspacing="0" style="border:1px solid #BBCADE">
            <tbody><tr>
              <td height="30" style="padding-left:10px; font-size:14px;color:Black; line-height:30px;"><strong>新会员注册</strong></td>
            </tr>
            <tr>
              <td height="180" valign="top"><table width="95%" border="0" cellspacing="0" cellpadding="0" style="margin-top:10px">
                <tbody><tr>
                  <td width="9%" height="24" align="right"></td>
                  <td width="91%" align="left"><strong style="font-size:12px">注册会员即能享受：</strong></td>
                </tr>
                <tr>
                  <td height="20" align="right"></td>
                  <td height="20" align="left">1、免费注册，不收取会员费！ </td>
                </tr>
                <tr>
                  <td></td>
                  <td height="22" align="left">2、在网站开展积分兑换礼品活动时，会员可用积分进行兑换！ </td>
                </tr>
                <tr>
                  <td></td>
                  <td height="22" align="left">3、享受更加体贴的个性化服务！ </td>
                </tr>
                <tr>
                  <td></td>
                  <td height="33" align="left"><input id="loginBtn2" type="button" class="base_btns3" value="现在就注册" onclick="javascript:location.href='${path}/user/test02/register.jsp'"></td>
                </tr>
              </tbody></table></td>
              </tr>
          </tbody></table></td>
        </tr>
      </tbody></table>
    <script>
      $(function(){
       $('#loginBtn').click(function(){
         var str='';
         var uname=$('#login_user').val();
         var upwd=$('#login_pwd').val();
          if(uname.length==0){
            str+='用户名,';
          }
          if(upwd.length==0){
            str+='密码,';
          }
          if(str.length>0){
            alert(str+'不能为空');
          }else{
            $('#login_form').submit();
          }
       });
      });
    </script>
<jsp:include page="${path}/user/test03/normal/footer.jsp"></jsp:include>

</body>
</html>